﻿<%@ Page Title="修改密码" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="editpassword.aspx.cs" Inherits="STP.Account.ChangePassword" Async="true" %>

<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
<div class="form-horizontal">
    <h4>修改密码</h4>
    <hr />
    <p class="text-danger">
        <asp:Literal runat="server" ID="ErrorMessage" />
    </p>
        <div class="form-group">
            <asp:Label runat="server" AssociatedControlID="Password" CssClass="col-md-2 control-label">旧密码</asp:Label>
            <div class="col-md-10">
                <asp:TextBox runat="server" ID="OldPassword" CssClass="form-control" TextMode="Password"  />
                <asp:RequiredFieldValidator runat="server" ControlToValidate="Password" ID="rfv1"
                    CssClass="text-danger" ErrorMessage="请输入旧密码" />
            </div>
        </div>
        <div class="form-group">
            <asp:Label runat="server" AssociatedControlID="Password" CssClass="col-md-2 control-label">新密码</asp:Label>
            <div class="col-md-10">
                <asp:TextBox runat="server" ID="Password" CssClass="form-control" TextMode="Password"  />
                <asp:RequiredFieldValidator runat="server" ControlToValidate="Password" ID="rfv2"
                    CssClass="text-danger" ErrorMessage="请输入新密码" />
            </div>
        </div>
        <div class="form-group">
            <asp:Label runat="server" AssociatedControlID="ConfirmPassword" CssClass="col-md-2 control-label">确认新密码</asp:Label>
            <div class="col-md-10">
                <asp:TextBox runat="server" ID="ConfirmPassword" TextMode="Password" CssClass="form-control" />
                <asp:RequiredFieldValidator runat="server" ControlToValidate="ConfirmPassword" ID="rfv3"
                    CssClass="text-danger" Display="Dynamic" ErrorMessage="请确认新密码" />
                <asp:CompareValidator runat="server" ControlToCompare="Password" ControlToValidate="ConfirmPassword" ID="rfv4"
                    CssClass="text-danger" Display="Dynamic" ErrorMessage="密码不一致" />
            </div>
        </div>
    <div class="form-group">
        <asp:Button runat="server" ID="submit" Text="确认" OnClick="submit_Click" CssClass="btn btn-default" />
        <asp:Button runat="server" ID="cancel" Text="取消修改" OnClick="cancel_Click" CssClass="btn btn-default"  />
    </div>
</div >

</asp:Content>
